package com.mcm.vistas;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;

public class BotonProductos extends JButton implements ActionListener
{
	private static final long serialVersionUID = 1770382157353533562L;

	public BotonProductos(String label) {
		this.setText(label);
		this.addActionListener(this);
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) 
	{
		System.out.println("Hola Productos");
//		GrillaProductos gp = new GrillaProductos();
//		gp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      
//        gp.setLocationByPlatform(true);
//        gp.setVisible(true);
        super.setVisible(false);
	}
	
}
